package com.myFwk.controller;

import com.myFwk.service.serviceImpl.TestServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author GL
 * @version 1.0
 * @date 2021/10/16 21:47
 */
@RestController
@Api(tags = "测试接口")
@RequestMapping("/admin")
public class TestController {


    /**
     * 该接口主要测试Token的中继
     *
     * @param msg
     */
    @Autowired
    private TestServiceImpl testService;

    @PostMapping("/sendMsg")
    public void TestClient(String msg) {
        testService.sendMsg(msg);
    }


}
